package com.leyou;

import com.leyou.auth.config.JwtProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 授权中心的启动类【引导类】
 */
@EnableScheduling
@SpringBootApplication   //  这个注解中已经包含了  @Configuration 注解
@EnableDiscoveryClient
@EnableFeignClients
// @EnableConfigurationProperties  这个注解必须写到配置类上  @Configuration注解的类就是配置类
@EnableConfigurationProperties(JwtProperties.class) // 引入配置类
@MapperScan("com.leyou.auth.mapper")
public class LyAuthApplication {
    public static void main(String[] args) {
        SpringApplication.run(LyAuthApplication.class, args);
    }
}
